package com.bestcem.xm.member.controller.dto;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 示例服务
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/8/6
 */
@Getter
@Setter
@ToString
public class HttpImportRecordDTO {
    private String id;

    private String orgId;


    @JsonProperty(value = "user")
    private String userId;

    private Integer status;

    private JSONObject data;

    @JsonProperty(value = "file_name")
    private String fileName;

    @JsonProperty(value = "mtype")
    private Integer mType;

    /**
     * 创建时间
     */
    @JsonProperty("created_dt")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonProperty("updated_dt")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @JsonProperty(value = "partial_success")
    private Boolean partialSuccess;
}
